package se.thoka.twt.client.utils;

import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.Constants;

public class TWTSettings {

	private static FormConfig formConfig;
	
	public interface FormConfig extends Constants {
		@DefaultIntValue(value = 200)
		int changeDelayInMillis();
	}
	
	public static FormConfig getFormConfig() {
		if (formConfig == null) {
			formConfig = GWT.create(FormConfig.class);
		}
		
		return formConfig;
	}
}
